package app_kvEcs;

public class ServerInfo {
	private String ipAddress;
	
	private int port;

	private ServerStatus status;
	
	public ServerInfo(String ipAddress, int port, ServerStatus status) {
		this(ipAddress, port);
		this.status = status;
	}
	
	public ServerInfo(String ipAddress, int port){
		this.port = port;
		this.ipAddress = ipAddress;
		this.status = ServerStatus.NONE;
	}
	
	public String getIpAddress() {
		return ipAddress;
	}

	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}
	
	@Override
	public String toString() {
		return this.getIpAddress() + ":" + this.getPort();
	}

	public void setStatus(ServerStatus status) {
		this.status = status;
	}
	
	public ServerStatus getStatus() {
		return this.status;
	}
}
